namespace feng3d
{
	/**
	 * 圆锥体

	 */
	export class ConeGeometry extends CylinderGeometry
	{
		__class__: "feng3d.ConeGeometry" = "feng3d.ConeGeometry";

		name = "Cone";

        /**
         * 底部半径 private
         */
		topRadius = 0;

        /**
         * 顶部是否封口 private
         */
		topClosed = false;

        /**
         * 侧面是否封口 private
         */
		surfaceClosed = true;
	}

    export interface DefaultGeometry
    {
        Cone: ConeGeometry;
    }
    Geometry.setDefault("Cone", new ConeGeometry());
    
    GameObject.registerPrimitive("Cone", (g) =>
    {
        g.addComponent(MeshRenderer).geometry = Geometry.getDefault("Cone");
    });

    export interface PrimitiveGameObject
    {
        Cone: GameObject;
    }
}